import React from 'react';
import style from './style.module.scss';

const Notfound = props => {
    const { history } = props;
    return(
        <div className={style.notfound}>
            <div className={style.mask}>
                <div className={style.container}>
                    <div className={style.avantar}>
                        <img src="/images/avantar.jpeg" alt="avantar"/>
                    </div>
                    <h5>404</h5>
                    <hr className={style.line1}/>
                    <p>对不起，找不到此页面</p>
                    <hr className={style.line2}/>
                    <button onClick={() => history.goBack()}>
                        返回上一页
                    </button>
                </div>
            </div>
        </div>
    )
}

export default Notfound;